package top.guoyang.springboot3.service.message;

import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;

public class BaseApiService {
    public static final String ID = "lapqtngchjdecsfj";
    public static final String SECRET = "7KgADR5gawqpzWHdOnGT1d5wkEQJFWDf";
    public static final String HISTORY_URL = "https://www.mxnzp.com/api/history/today?type=1&app_id=%s";

    public HttpEntity<String> buildHttpEntity() {
        HttpEntity<String> httpEntity;
        HttpHeaders headers = new HttpHeaders();
        headers.add("app_id", ID);
        headers.add("app_secret", SECRET);
        httpEntity = new HttpEntity<>(headers);
        return httpEntity;


    }
}
